package com.mm.learn.oop;/**
 * @author wdx
 * @create 2021-04-21 16:17
 */

import org.springframework.beans.factory.FactoryBean;

import java.util.ArrayList;
import java.util.List;

/**
 * @author wdx
 * @date 2021年04月21日 16:17
 */
public class Wdd implements FactoryBean {
    private String age;
    private String name;
    private String sex;

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Wdd(String age) {
        this("1", "10");
        System.out.println("1");
        this.age = age;
    }

    public Wdd(String age, String name) {
        System.out.println("liangge ");
        this.age = age;
        this.name = name;
    }

    public Wdd(String age, String name, String sex) {
        this.age = age;
        this.name = name;
        this.sex = sex;
    }


    public Wdd() {
        System.out.println("wdd被spring加载了");
    }

    public static void main(String[] args) {
        Wdd wdd = new Wdd("!");
        List list = new ArrayList();
    }

    @Override
    public Object getObject() throws Exception {
        return new Wdd();
    }

    @Override
    public Class<?> getObjectType() {
        return Wdd.class;
    }
}
